#ifndef SHUTDOWNTIMER_H
#define SHUTDOWNTIMER_H

#include <e32base.h>

class CShutdown : public CTimer
    {
    enum {KMyShutdownDelay=0x200000};   // approx 2s
public:
    inline CShutdown() : CTimer(-1) { CActiveScheduler::Add(this); }
    inline void ConstructL() { CTimer::ConstructL(); }
    inline void Start() { After(KMyShutdownDelay); }
private:
    void RunL() { CActiveScheduler::Stop(); }
    };

#endif // SHUTDOWNTIMER_H
